package com.health.admin.filter;

import org.junit.jupiter.api.Test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author: zipeng Li
 * 2021/6/14  10:19
 */
public class testFilter {

    @Test
    public void test01(){
        String line = "/api/admin/other";
        String pattern = "/api/admin/.*";
        Pattern r = Pattern.compile(pattern);
        Matcher matcher = r.matcher(line);
        boolean matches = matcher.matches();
        System.out.println(matches);
    }
}